package com.jy.datapipeline.importserver.service;

import com.jy.datapipeline.importserver.common.dto.ImportDataSourceNamesDto;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * @类名 ImportDataSourceService
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/4/19 15:35
 * @版本 1.0
 */
public interface ImportDataSourceService {

    List<ImportDataSourceNamesDto> queryDataSourceNames();

    List<String> queryDataSourceSchemas(String dataSourceId) throws SQLException;

    List<Map<String, Object>> queryDataSourceColumns(String dataSourceId, String schema, String tableName) throws SQLException;

    Map<String, Object> queryTables(String dataSourceId, String schema, String searchType, String tblName, Integer endIndex, Map<String, Object> map) throws SQLException;
}
